package com.heifei

/**
 * @author caizhengjun01@gmail.com
 * @date 2020/8/3 8:17 下午
 */
object ForDemo {
  def main(args: Array[String]): Unit = {


    val nArr = for (i <- 0 to 10 if i % 2 == 0) yield i * 10
    println(nArr)

    println(1.to(100))
  }
}
